<?php include_partial('aoiFrontPartials/contentHeader',
	array(
		'nav'=>array(
			array('url'=>url_for('homepage'),'title'=>'Accueil'),
			array('url'=>'','title'=>'R&eacute;servations')
		),
		'title'=>'R&eacute;servations',
		'description'=>'Votre prochain voyage avec Comoros Airways'
	)
); ?>

<section id="content">
	<div class="container">
		
		<div id="mainbody">
			
			<div class="row">
				<div class="span12">
					<form method="POST" id="passengers_form" action="<?php echo url_for('booking_confirm')?>">
						<input type="hidden" name="step" value="all"/>
						<input type="hidden" name="flight_type" value="<?php echo $flight_type ?>"/>
						<input type="hidden" name="flight_go" value="<?php echo $flight_go ?>"/>
						<input type="hidden" name="flight_back" value="<?php echo $flight_back ?>"/>
						<?php foreach($passengers->getRawValue() as $key=>$passenger_category_id): ?>
						<input type="hidden" name="passengers[]" value="<?php echo $passenger_category_id ?>"/>
						<?php endforeach; ?>
						
						<h2>Passagers</h2>
						<div class="row">
								<?php
									$index = 0;
								foreach($passengers->getRawValue() as $key=>$passenger_category_id): ?>
									<?php include_component('aoiItineraryReservation','bookingPassengerForm',array('passenger_category_id'=>$passenger_category_id,'index'=>$index)); ?>
								<?php
									$index++;
								endforeach; ?>
						 </div><!-- Row fluid end -->

						<fieldset>
							<input type="submit" class="btn btn-large btn-success" value="Confirmer les passagers"/>
							<br/><br/>
							<a class="btn" href="<?php echo url_for('booking') ?>">Recommencer la r&eacute;servation</a>
						</fieldset>

					</form>
				</div><!-- end Grid span12 -->
			 </div><!-- end row -->
			
		</div><!-- end mainbody -->
		
	</div><!-- end container -->
</section>


<script type="text/javascript">
$(document).ready(function(){
	$('#passengers_form').simpleFormValidation();
});
</script>